﻿using Shop.RemoteModel;
using SqlSugar;

namespace Shop.Model.DB
{
    [SugarTable("Advert_List")]
    public class DBAdvert
    {
        /// <summary>
        /// 广告ID
        /// </summary>
        [SugarColumn(IsPrimaryKey = true)]
        public long Id { get; set; }

        /// <summary>
        /// 广告位ID
        /// </summary>
        public long PlaceId { get; set; }

        /// <summary>
        /// 标题
        /// </summary>
        public string Title { get; set; }

        /// <summary>
        /// 图片链接
        /// </summary>
        public string ImgSrc { get; set; }

        /// <summary>
        /// 排序号
        /// </summary>
        public int Sort { get; set; }

        /// <summary>
        /// 关联ID
        /// </summary>
        public long RelationId { get; set; }

        /// <summary>
        /// 关联类型
        /// </summary>
        public AdvertRelationType RelationType { get; set; }

        /// <summary>
        /// 投放开始
        /// </summary>
        public long PutInBegin { get; set; }

        /// <summary>
        /// 投放结束
        /// </summary>
        public long PutInEnd { get; set; }

        /// <summary>
        /// 投放状态
        /// </summary>
        public AdvertStatus AdvertStatus { get; set; }

        /// <summary>
        /// 停止时间
        /// </summary>
        public long StopTime { get; set; }

        /// <summary>
        /// 实际开始时间
        /// </summary>
        public long ActualBegin { get; set; }
    }
}
